package com.daylive.service;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.daylive.dao.ReportsDao;
import com.daylive.model.Reports;

@Service
public class ReportsService {
	private final int PAGE_SIZE = 31;
	@Autowired
	private ReportsDao reportsDao;
	
	public List<Reports> getRoportsList(String time) {
		List<Reports> list = reportsDao.getRoportsList(time);
		return list;
	}
	public List<Reports> getRoportsList() {
		List<Reports> list = reportsDao.getRoportsList();
		return list;
	}
	public int addReports(Reports reports) {
		return reportsDao.addReports(reports);
	}
	public int addUserCount(String time) {
		return reportsDao.addUserCount(time);
	}
	public int addLiveCount(String creat_time) {
		return reportsDao.addLiveCount(creat_time);
	}
	public int addUserOnlineCount(String start_time) {
		return reportsDao.addUserOnlineCount(start_time);
	}
	public int getMinutes(String creat_time) {
		return reportsDao.getMinutes(creat_time);
	}

}
